//
//  DealJavaScript.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Base_WebviewJS.h"
#import <objc/runtime.h>
@interface DealJavaScript : NSObject

- (instancetype)initWithTarget:(Base_WebviewJS *)target;

@property (nonatomic , weak)  Base_WebviewJS *target;

@property (nonatomic , copy) NSString *key;

+ (DealJavaScript *)setTargert:(Base_WebviewJS *)target;;

@end



@interface DealJavaScriptModel : NSObject
@property (nonatomic , weak) UIWebView *sender;
@property (nonatomic , copy) NSString *methodName;
@property (nonatomic , copy) NSString *methodParams;

+ (DealJavaScriptModel *)instanceWith:(UIWebView *)sender andMethodName:(NSString *)methodName andMethodParams:(NSString *)methodParams;

@end
